package com.HomeWorkhsp.Chapter07;

/**
 * Enjoy programming!!!
 * Time: 2021/11/10 -  19:41
 */
public class Test07 {
        int count = 9;
        public void count1 () {
            count = 10;
            System.out.println("count1 =" + count);

        }
        public void count2 () {
            System.out.println("count1 =" + count++);
        }
        public static void main (String[] args){
            new Test07().count1();//匿名对象，使用后，就不能用了
            Test07 t1 = new Test07();
            t1.count2();
            t1.count2();
        }

    }
